<ion-view view-title="支付宝转账">
	<ion-nav-buttons side="left">
    	<a class="button button-icon icon-prepage" ng-click="back();"></a>
  	</ion-nav-buttons>
<ion-content>

	<div class="item-online item-bank">
		<!-- 第一步，用户选择 -->
		<div ng-show="bankStep==1">
		<div class="offline-pay-tip"><span>!</span>请先转账成功后再点下一步提交存款信息！</div>
		<form name="depositBankForm1" novalidate>
			<div class="row">
				<div class="col" style="max-width:100%">
					<label class="item item-select">
					<select	name="bankObj" ng-model="depositData.bankObj" ng-options="v.rechName for v in rechTypeList" required>
						<option value="">选择支付账号</option>  
					</select>
					</label>
				</div>
			</div>
			<div ng-show="depositData.bankObj" class="item-round" style="">
				姓&nbsp;&nbsp;名&nbsp;: {{depositData.bankObj.payeeName}}<br>
				账&nbsp;&nbsp;号&nbsp;: <input style="background-color: transparent; border: 0px;" readonly ng-value="depositData.bankObj.payee"/><br>
				地&nbsp;&nbsp;址&nbsp;: <img height="150" width="150" ng-src="{{depositData.bankObj.qrCode}}"><br>
                <!--<img height="150" width="150" ng-src="{{depositData.bankObj.qrCode.indexOf('http')==0?depositData.bankObj.qrCode:staticPath+depositData.bankObj.qrCode}}">-->
			</div>
		<button ng-click="setBankStep(2);" ng-disabled="depositBankForm1.$invalid"
				class="button button-block button-positive button-positive-theme">下一步</button>
			</form>
		</div>
		<!-- 第二步，填写存款信息 -->
		<div ng-show="bankStep==2">
		<form name="depositBankForm2" novalidate>
			<div class="item item-input" style="margin-bottom:0px">
				<input type="text"  class="input-number reset-field" name="depositMoney"
				 ng-model="depositData.depositMoney" placeholder="请填写存款金额" required
				 ng-keyup="parseFloatMoneyInDepositPage($event)" />
			</div>
			<p class="item-warn text-light">
				单笔下限<span class="red">10</span>,单笔上限<span class="red">9999999</span>
			</p>
			<div class="item item-input" style="margin-bottom:0px">
				<input type="text" class="input-number reset-field" name="depositUsername"
				 ng-model="depositData.depositUsername" placeholder="请填写付款的支付宝用户昵称" required />
			</div>
			<div class="list item item-input" style="margin-bottom:0px">
				<input type="datetime-local" name="depositDate" ng-model="depositData.depositDate" required />
			</div>
			<button ng-click="bankNextStep(depositData)" ng-disabled="depositBankForm2.$invalid"
				class="button button-block button-positive button-positive-theme">下一步</button>
		</form>
		</div>
		<!-- 第三步，确认提交内容 -->
		<div ng-if="bankStep==3">
			<div class="confirmbox-theme">
				<div class="confirm-title"><span>!</span>为了加快入款速度,请务必于转账后再提交资料！</div>
				<div class="confirm-con">
					<div class="confirm-contitle">存款信息</div>
					<div class="confirm-context">
						<p>存入金额: {{depositData.depositMoney}}</p>
						<p>用户昵称: {{depositData.depositUsername}}</p>
						<p>存款时间: {{depositData.depositDate | date: 'yyyy-MM-dd HH:mm:ss'}}</p>
						<p>存款方式: 支付宝转账</p>
					</div>
					<div class="confirm-contitle">支付宝账户信息</div>
					<div class="confirm-context">
						<p>姓&nbsp;&nbsp;名&nbsp;: {{depositData.bankObj.payeeName}}</p>
						<p>账&nbsp;&nbsp;号&nbsp;: {{depositData.bankObj.payee}}</p>
					</div>
				</div>
			</div>
			<button id="btnDeposit" ng-click="doPay(depositData)" class="button button-block button-positive button-positive-theme">提交申请</button>
		</div>
	</div>
</ion-content>
</ion-view>